package java_DesignPattern.CreatorPattern.PrototypePattern.DeepClone;

import java.io.Serializable;

/**
 * 三好学生奖状类
 */
public class JZh implements Cloneable, Serializable {

    /*private String name;

    public void setName(String name){
        this.name = name;
    }*/

    //重写Object中的clone()方法---浅克隆
    public JZh clone() throws CloneNotSupportedException {
        return (JZh) super.clone();
    }

    private Student stu;

    public Student getStu() {
        return stu;
    }

    public void setStu(Student stu) {
        this.stu = stu;
    }

    public void show(){
        System.out.println(stu.getName()+"是三好学生");
    }
}
